<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登陆页面</title>
</head>
<body>
<h2 th:text="'这是服务器：' + ${#httpServletRequest.getServerPort()}"></h2>
<h2 th:text="'当前sessionId：' + ${#session.getId()}"></h2>
<form th:action="@{/login}">
    请输入用户名：<input type="text" name="username"/><br/>
    请输入密码：<input type="password" name="password"/><br/>
    <input type="submit" value="登陆"/>
</form>
</body>
</html>